package org.spider.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author lzy
 * @since 2022-06-02 15:36:47
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("spider_manage_ua")
@ApiModel(value = "SpiderManageUaEntity对象", description = "")
public class SpiderManageUaEntity extends Model<SpiderManageUaEntity> {

    @ApiModelProperty("主键id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Integer id;

    @ApiModelProperty("user-agent值")
    @TableField("agent_value")
    private String agentValue;

    @ApiModelProperty("user-agent类型，1：电脑-谷歌浏览器；2：电脑-火狐浏览器；3：电脑-IE浏览器；4：电脑-百度浏览器；")
    @TableField("agent_type")
    private Integer agentType;

    @ApiModelProperty("user-agent状态，1：被删除；2：正常使用；3：已过期")
    @TableField("agent_status")
    private Integer agentStatus;

    @ApiModelProperty("创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;


    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
